package framework

import "github.com/kataras/iris/v12"

type Response struct {
	Status  uint   `json:"status"`
	Message string `json:"message"`
	Data    any    `json:"data"`
}

func ResponseOk(ctx iris.Context, data ...any) {
	ctx.JSON(Response{
		Status:  200,
		Message: "ok",
		Data:    data[0],
	})
}
